<div class="memberTable">
    
  <img src="<?php echo base_url();?>temp/images/member.jpg"/>
          <?php 
               if($content){if($content->activated !=1){
                ?>
                <blockquote>
                <p>Your email has not been verified.
                You will not be able to cashout until you do so.<br />
                <a href="<?php echo base_url().'auth/send_again'?>">Click Here to Resend Verification Email</a>
                
               
                </blockquote>
                <?php }}?>              
							
				<table>
				
					<tr class="row-a">
						<td><a href="<?php echo base_url();?>user/hthistory">Total Earn <?php if($content){echo $content->total;};?></a> </td>
						<td><a href="<?php echo base_url();?>user/hthistory">Current Earnings <?php if($content){echo $content->curent;};?></a> </td>
					
                    </tr>					
					<tr class="row-b">
					   <td><a href="<?php echo base_url();?>offer/survey">Complete More Offers! </a></td>
						<td><a href="<?php echo base_url().'user/changepass'?>">Change Password </a></td>
					</tr>
					<tr class="row-a">
					   <td><a href="<?php echo base_url();?>user/payout">Cashout</a></td>
						<td><a href="<?php echo base_url();?>user/history">History </a></td>
					</tr>
                    <tr class="row-b">
                        <td><a class="ref" href="<?php echo base_url().'user/register/ref/'.$content->id;?>">Reflink</a></td>
						<td><a href="<?php echo base_url()?>user/logout">Logout</a></td>					
					   
                    </tr>
				</table>
                
                <!--- chat box-->
               <?php //$this->load->controller('chatbox/chatbox');
                ?>
                <!-- end chat box--------------->
                
    
  </div>
  
  <div style="width: 600px;margin:20px auto;padding:15px;border:1px solid #ddd;">
    <?php
        $dt = $this->Home_model->get_one('thongbao',array('id'=>1));
        if(!empty($dt)){
            echo $dt->content;
        }
    ?>
  </div>
  
  <script>
  $(document).ready(function(){
    $('.ref').click(function(){
        var ref = $(this).attr('href');
        alert(ref);
        return false;
    }) 
  });
/*  
$(document).ready(function(){
    point = <?php echo $content->curent;?>;
    $('.gui').live('click',function(){
        if(point<0){
            alert('Point <=0');
            return;
        }
        var dt = $('.inputchat .nd').val(); 
        $('.inputchat .nd').val("");
        $.ajax({
            type:"POST",
            url:'<?php echo base_url();?>chatbox/adddata',
            data:{data:dt},
            success:ndungchat,
            error:loiaj        
        });
        return false;
    });
      $(document).live('keypress', function(e){
          if(e.which === 13) { // return
          if(point<10){
                alert('Point <=10');
                return;
            }
              var dt = $('.inputchat .nd').val(); 
                $('.inputchat .nd').val("");
                $.ajax({
                    type:"POST",
                    url:'<?php echo base_url();?>chatbox/adddata',
                    data:{data:dt},
                    success:ndungchat,
                    error:loiaj        
                });
          }
    });
    function ndungchat(){
       $.ajax({
            type:"POST",
            url:'<?php echo base_url();?>chatbox/ndchatbox',            
            success:ndchat,
            error:loiaj        
        }); 
    }
    setInterval(function() {
      ndungchat();
      $( ".topcredit" ).load( "<?php echo base_url();?>chatbox/topcredit" );
    }, 5000);
})

function ok (data, status){
        //$(data).toggleClass('unpub');
}
    
function loiaj(xhr, reason, ex){
    alert('loi');
    $("div .box_ajax").html('loi');
}
function test (data, status){
        alert(data);
}
function ndchat(data, status){
    $('.hienthichat').html(data);
}
*/
</script>